package com.yt.server.api;

import com.yt.server.api.action.IActionCall;
import com.yt.server.api.action.IActionCallback;
import com.yt.server.messaging.Packet;

/**
 * @author 刘晶
 * @IActionCapableConnection Connection ---> Action的桥梁
 */
public interface IActionCapableConnection extends IConnection {

	void handleRemotingPacket(Packet packet);

	void handleRemotingPacket(Packet packet, IActionCallback callback);

	void invoke(IActionCall call);

	void invoke(String method);

	void invoke(String method, IActionCallback callback);

	void invoke(String method, Object[] params);

	void invoke(String method, Object[] params, IActionCallback callback);

	void notify(IActionCall call);

	void notify(String method);

	void notify(String method, Object[] params);
}
